<table>
<?php echo $form->create('User');?>

<tr>
  <td><?php echo $form->label('User/username', 'Nom d\'utilisateur'); ?></td>
  <td><?php echo $form->input('User/username', array('label' => false, 'maxlength'=>'20', 'class'=>'req', 'div'=>false)); ?></td>   
</tr>

<tr>
  <td><?php echo $form->label('User/password', 'Mot de passe'); ?></td>
  <td><?php echo $form->input('User/password', array('label' => false)); ?> </td>
</tr>

<tr>
  <td><?php echo $form->label('User/first_name', 'Prénom'); ?></td>
  <td><?php echo $form->input('User/first_name', array('label' => false)); ?></td>
</tr>

<tr>
  <td><?php echo $form->label('User/last_name', 'Nom de famille'); ?></td>
  <td><?php echo $form->input('User/last_name', array('label' => false)); ?></td>
</tr>

<tr>
  <td><?php echo $form->label('User/group_id', 'Groupe'); ?></td>
  <td><?php 
        echo $form->select('User/group_id', $groups, null, array(), false); 
      ?></td>
</tr>

<tr>
  <td colspan="2">
    <?php echo $form->end('Créer utilisateur'); ?>
  </td>
</tr>
</table>
